package com.pri.chat.adapter;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.netease.nim.uikit.net.entity.KeFuEntity;
import com.netease.nim.uikit.net.entity.LookMemberListBean;
import com.pri.chat.R;
import com.pri.chat.utils.GlideUtil;
import com.pri.chat.utils.TimeUtils;
import com.pri.chat.view.ImageViewPlus;

import java.util.List;

/**
 * 描述：添加类的描述
 *
 * @author wx5e48d604c2885118
 * @time 2020/4/24
 */
public class SelectSignAdapter extends BaseQuickAdapter<KeFuEntity, BaseViewHolder> {

    public SelectSignAdapter(int layoutResId, @Nullable List<KeFuEntity> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, KeFuEntity item) {
        if(item.getTitle().contains("使用#")){
            helper.setText(R.id.tv_sign_name,item.getTitle());
        }else{
            helper.setText(R.id.tv_sign_name,"#"+item.getTitle()+"#");
        }
    }
}
